package Template5::Element::ContainerCond;
use base qw(Template5::Element::Container);

use strict;
use warnings;

#-------------------------------------------------------------------------------
#public
sub new($$)
{
	my $class    = shift;
	my $htmlnode = shift;
	my $params   = shift;

	my $this = $class->SUPER::new($htmlnode, $params);	
	my $cond = $this->{'htmlnode'}->attr('cond');

	$this->{'cond'}     = defined($cond)?$cond:'$this';
	$this->{'havethis'} = 0;

	return $this;
};

#-------------------------------------------------------------------------------
#public
sub getstruct()
{
	my $this   = shift;
	my $retVal = $this->SUPER::getstruct();

	$retVal->attr('_saver:element', Template5::Saver->new({'id' => 1, 'cond' => 1, 'skip' => 0, 'inherited' => 0, 'nonautoid' => 0, 'inline' => 0, 'notvisible' => 0}));	
	return $retVal;
};

1;

